#include "Cuboid.h"

void Cuboid::init(double l, double w, double h){
    length = l;
    weight = w;
    hight = h;
}

double Cuboid::get_volume(){
    return length * weight * hight;
}

double Cuboid::get_length(){
    return length;
}

double Cuboid::get_weight(){
    return weight;
}

double Cuboid::get_hight(){
    return hight;
}

bool Cuboid::my_judge(Cuboid &x, Cuboid &y){
    if(x.hight == y.hight && \
        x.length == y.length &&\
        x.weight == y.weight){
        return true;
    }else{
        return false;
    }
}

bool Cuboid::my_judge(Cuboid &other){
    if(hight == other.hight && \
        length == other.length &&\
        weight == other.weight){
        return true;
    }else{
        return false;
    }
}